// src/router.js
import { createRouter, createWebHistory } from 'vue-router';
import IndexShow from "@/components/index/IndexShow";
import MhConsole from "@/components/console/MhConsole";

import ElasticSearch from "@/components/knowledgestore/backend/ElasticSearch";
import KnowledgeIndex from "@/components/knowledgestore/KnowledgeIndex";

import IDEAinstallGitCodeStore from "@/components/about/AboutMe";
import RabbitMq from "@/components/markdown/RabbitMQNote.md"
import FileWechatDevel from "@/components/markdown/filmWechatNote.md"
import SpringCloundNote from  "@/components/markdown/SpringCloudNode.md"
import ContributeArea from "@/components/contributearea/ContributeArea";
import PromptStore from "@/components/knowledgestore/stablediffusion/PromptStore";
import AiPaint from "@/components/knowledgestore/stablediffusion/AiPaint";
import AiModel from "@/components/knowledgestore/stablediffusion/AiModel";
import SDExtensions from "@/components/knowledgestore/stablediffusion/SDExtensions";
import HeartThink from "@/components/heartthink/HeartThink";
import YourThoughts from "@/components/heartthink/YourThoughts";
import BigModel from "@/components/starfire/BigModel";
import AboutMe from "@/components/about/AboutMe";
import HappyNewYear from "@/components/newyear/HappyNewYear";
import WikiHome from "@/components/wiki/WikiHome";
import Test1 from "@/components/wiki/test/Test1";
import Test2 from "@/components/wiki/test/Test2";
import XmindIndex from "@/components/xmind/XmindIndex";
import DouyinTool from "@/components/xmind/DouyinTool";
import LotteryQuartz from "@/components/xmind/LotteryQuartz";
import AiNavigate from "@/components/knowledgestore/stablediffusion/AiNavigate";

const routes = [
    { path: '/', component: IndexShow },
    { path: '/console', component: MhConsole },
    { path: '/KnowledgeIndex',
        component:KnowledgeIndex,
        children:[
            {
                path:"/SpringCloundNote",
                component:SpringCloundNote
            },
            {
                path:"/elasticSearch",
                component:ElasticSearch
            },
            {
                path:"/IDEAinstallGitCodeStore",
                component:IDEAinstallGitCodeStore
            },
            {
                path:"/RabbitMq",
                component:RabbitMq
            },
            {
                path:"/FileWechatDevel",
                component:FileWechatDevel
            },
            {
                path:"/Aipaint",
                component:AiPaint,
            },
            {
                path:"/promptstore",
                component:PromptStore
            },
            {
                path:"/AiModel",
                component:AiModel
            },
            {
                path:"/AiNavigate",
                component:AiNavigate
            },
            {
                path:"/sdextensions",
                component:SDExtensions
            },
            {
                path: '/xmindIndex',
                component: XmindIndex
            },
            {
                path: '/DouyinTool',
                component: DouyinTool
            },
            {
                path: '/lottery',
                component:  LotteryQuartz
            }
        ]

    },
    {
        path: '/contributearea',
        component: ContributeArea

    },
    {
        path: '/heartthink',
        component: HeartThink
    },
    {
        path: '/yourthoughts',
        component: YourThoughts
    },
    {
        path: '/starfire',
        component: BigModel
    },
    {
        path: '/aboutme',
        component: AboutMe
    },
    {
        path: '/happynewyear',
        component: HappyNewYear
    },
    {
        path: '/wikiHome',
        component: WikiHome,
        children:[
            {
                path: '/test1',
                component: Test1
            },
            {
                path: '/test2',
                component: Test2
            }
        ]
    }
    // 添加其他路由
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
